<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      cpio-2.13
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;12.&nbsp;System Utilities
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="colord.html" title="Colord-1.4.4">Prev</a>
          <p>
            Colord-1.4.4
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="cups-pk-helper.html" title=
          "cups-pk-helper-0.2.6">Next</a>
          <p>
            cups-pk-helper-0.2.6
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sysutils.html" title=
          "Chapter&nbsp;12.&nbsp;System Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="cpio" name="cpio"></a>cpio-2.13
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to cpio
        </h2>
        <p>
          The <span class="application">cpio</span> package contains tools
          for archiving.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://ftp.gnu.org/gnu/cpio/cpio-2.13.tar.bz2">https://ftp.gnu.org/gnu/cpio/cpio-2.13.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.gnu.org/gnu/cpio/cpio-2.13.tar.bz2">ftp://ftp.gnu.org/gnu/cpio/cpio-2.13.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: f3438e672e3fa273a7dc26339dd1eed6
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.3 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 17 MB (with tests and docs)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.3 SBU (with tests and docs)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          CPIO Dependencies
        </h3>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../pst/texlive.html" title=
          "texlive-20190410-source">texlive-20190410</a> (or <a class="xref"
          href="../pst/tl-installer.html" title=
          "install-tl-unx">install-tl-unx</a>)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/cpio">http://wiki.linuxfromscratch.org/blfs/wiki/cpio</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of cpio
        </h2>
        <p>
          Install <span class="application">cpio</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr \
            --bindir=/bin \
            --enable-mt   \
            --with-rmt=/usr/libexec/rmt &amp;&amp;
make &amp;&amp;
makeinfo --html            -o doc/html      doc/cpio.texi &amp;&amp;
makeinfo --html --no-split -o doc/cpio.html doc/cpio.texi &amp;&amp;
makeinfo --plaintext       -o doc/cpio.txt  doc/cpio.texi</kbd>
</pre>
        <p>
          If you have <a class="xref" href="../pst/texlive.html" title=
          "texlive-20190410-source">texlive-20190410</a> installed and wish
          to create PDF or Postscript documentation, issue one or both of the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">make -C doc pdf &amp;&amp;
make -C doc ps</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;
install -v -m755 -d /usr/share/doc/cpio-2.13/html &amp;&amp;
install -v -m644    doc/html/* \
                    /usr/share/doc/cpio-2.13/html &amp;&amp;
install -v -m644    doc/cpio.{html,txt} \
                    /usr/share/doc/cpio-2.13</kbd>
</pre>
        <p>
          If you built PDF or Postscript documentation, install it by issuing
          the following commands as the <code class="systemitem">root</code>
          user:
        </p>
        <pre class="root">
<kbd class="command">install -v -m644 doc/cpio.{pdf,ps,dvi} \
                 /usr/share/doc/cpio-2.13</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--bindir=/bin</code></em>: This
          parameter installs <span class=
          "command"><strong>cpio</strong></span> to <code class=
          "filename">/bin</code> instead of <code class=
          "filename">/usr/bin</code> as recommended by the FHS guidelines.
        </p>
        <p>
          <em class="parameter"><code>--enable-mt</code></em>: This parameter
          forces the building and installation of the <span class=
          "command"><strong>mt</strong></span> program.
        </p>
        <p>
          <em class=
          "parameter"><code>--with-rmt=/usr/libexec/rmt</code></em>: This
          parameter inhibits building the <span class=
          "command"><strong>rmt</strong></span> program as it is already
          installed by the <span class="application">Tar</span> package in
          LFS.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">cpio and mt</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/share/doc/cpio-2.13</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="cpio-prog" name="cpio-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>cpio</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    copies files to and from archives.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="mt" name="mt"></a><span class="term"><span class=
                    "command"><strong>mt</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    controls magnetic tape drive operations.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 15:50:16 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="colord.html" title="Colord-1.4.4">Prev</a>
          <p>
            Colord-1.4.4
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="cups-pk-helper.html" title=
          "cups-pk-helper-0.2.6">Next</a>
          <p>
            cups-pk-helper-0.2.6
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sysutils.html" title=
          "Chapter&nbsp;12.&nbsp;System Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
